from django.contrib.sites.models import Site
from django.db.models import *

class Configuration(Model):
	site = OneToOneField(Site, related_name = "config")
	
	author = CharField(default = "Unknown author", max_length = 64)
	description = CharField(blank = True, max_length = 128)
	title = CharField(default = "Unconfigured site", max_length = 64)
	title_sub = CharField("Subtitle", blank = True, max_length = 64)
	keywords = CharField(blank = True, max_length = 128)
	google_analytics_id = CharField(blank = True, max_length = 32)
	
	feed_items = PositiveSmallIntegerField(default = 5, help_text = "Maximum number of feed items sent to a client")
	
	blog_posts_per_page = PositiveSmallIntegerField(default = 5, help_text = "Maximum number of blog posts per page")
	
	gallery_featured_photos = PositiveSmallIntegerField(default = 7, help_text = "Amount of photos to display from each gallery on the index page")
	
	artist_index_caption = CharField(default = "", max_length = 32, blank = True, help_text = "Leave empty to hide artist index in menu")
	
